package com.dalin.platform.etl.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-11-29                                                     *
 * @modDate: 2010-11-29                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class EtlTableInfoCondition extends Condition{
	private Long databaseId;
	private String tableName; // TABLE_ENGLISH_NAME,128,0
    private String tableComment; // TABLE_CHINESE_NAME,256,0
    private String remark; // REMARK,256,0


    public EtlTableInfoCondition prepareParams() {
        setBaseQueryStr("from EtlTableInfoEntity h");
        setParam("h.databaseId", "=", databaseId);
        setParam("h.tableName", "like", "%" + tableName + "%");
        setParam("h.tableComment", "like", "%" + tableComment + "%");
        setParam("h.remark", "like", "%" + remark + "%");
        setOrderBy("h.tableId desc");
        return this;
    }
    
    
    public Long getDatabaseId() {
		return databaseId;
	}
	public void setDatabaseId(Long databaseId) {
		this.databaseId = databaseId;
	}
	
	public String getTableName() {
		return tableName;
	}


	public void setTableName(String tableName) {
		this.tableName = tableName;
	}


	public String getTableComment() {
		return tableComment;
	}


	public void setTableComment(String tableComment) {
		this.tableComment = tableComment;
	}


	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
